#include "xmidatatype.h"

XmiDatatype::XmiDatatype()
{
    this->_id = "";
    this->_label = "";
}

XmiDatatype::XmiDatatype(QString id, QString label, bool isPrimitive)
{
    this->_id = id;
    this->_label = label;
    this->_isPrimitive = isPrimitive;
}

QString XmiDatatype::id()
{
    return this->_id;
}

void XmiDatatype::setId(QString id)
{
    this->_id = id;
}

QString XmiDatatype::label()
{
    return this->_label;
}

void XmiDatatype::setLabel(QString label)
{
    this->_label = label;
}

bool XmiDatatype::isPrimitive()
{
    return this->_isPrimitive;
}

void XmiDatatype::setIsPrimitive(bool isPrimitive)
{
    this->_isPrimitive = isPrimitive;
}

bool XmiDatatype::isValid()
{
    return this->_id != "" && this->_label != "";
}
